package com.top.ruizhong.main.order

import android.app.Activity
import android.content.Intent
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.module.lemlin.base.BaseAbstractActivity
import com.top.ruizhong.R
import kotlinx.android.synthetic.main.activity_order_details.*

class OrderDetailsActivity : BaseAbstractActivity() {

    companion object {
        fun open(activity: Activity) {
            val intent = Intent(activity, OrderDetailsActivity::class.java)
            activity.startActivity(intent)
        }
    }


    private val goodsAdapter =
        object : BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_goods_order) {
            override fun convert(holder: BaseViewHolder, item: String) {

            }
        }

    override val layoutResId: Int
        get() = R.layout.activity_order_details

    override fun stateBar(): StatusBar {
        return StatusBar(isLightMode = false, color = R.color.colorMain, view = flOrderDetailsBar)
    }

    override fun initView() {

        ivOrderDetailsBack.setOnClickListener { this.finish() }

        rvGoodsOrderBody.adapter = goodsAdapter
            .apply { setNewInstance(mutableListOf("","")) }
    }

}